package top.soulblack.purchasesale.utils;

import java.util.Random;

/**
 * @Author: 韦溜溜
 * @Description:
 * @Date: Create in 20:25 2018/12/18
 */
public class KeyUtil {
    /**
     * 获得一个独一无二的key
     * @return
     */
    public static synchronized String  getUniqueKey(){

        Random random = new Random();
        Integer number = random.nextInt(900000)+100000;

        return System.currentTimeMillis()+ String.valueOf(number);
    }
}
